var express = require('express');
var router = express.Router();

const userController = require('../controller/user');

/* GET users listing. */
router.get('/', function(req, res, next) {
    res.send('user');
});

router.route('/signup')
    .post((req, res, next) => {
        userController.signup({...req.body, res });
    })

router.route('/signin')
    .post((req, res, next) => {
        userController.signin({...req.body, res })
    })

module.exports = router;